﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

namespace UI
{
    public class UILuckCircleTemplateSix : UILuckCircleTemplateFour
    {
        public GameObject pos4;
        public GameObject pos5;

        public GameObject actvie4;
        public GameObject active5;

        public override void Actived(List<bool> light)
        {
            base.Actived(light);
            actvie4.SetActive(light[GetIndex(4)]);
            active5.SetActive(light[GetIndex(5)]);
        }

        public override Transform GetPlaced(int index)
        {
            var tr = base.GetPlaced(index);
            if (tr != null)
            {
                return tr;
            }
            else
            {
                if (index == 4) return pos4.transform;
                if (index == 5) return pos5.transform;
            }

            return null;
        }

        protected override void SortIndices()
        {
            indices[0] = 0;
            indices[1] = 3;
            indices[2] = 5;
            indices[3] = 1;
            indices[4] = 4;
            indices[5] = 2;
        }
    }
}